package com.dylan.springcloud.ribbonfeignloadbalancer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Dylan on 2018/10/17.
 */
@Service
@FeignClient(name = "client-b")
public interface ClientBService {

    @RequestMapping(value = "/sub", method = RequestMethod.GET)
    String sub(@RequestParam("a") int a, @RequestParam("b") int b);

}
